<?php
class ControllerModuleMebuuFaqHome extends Controller {
	protected function index() {
		$this->language->load('module/about');
		
      	$this->data['heading_title'] = $this->language->get('heading_title');
		
		$this->load->model('catalog/information');
		
		$this->data['informations'] = array();
		$data = array (
			'module' => 'faq',
			'start' => '0',
			'limit' => '5'
		);
		foreach ($this->model_catalog_information->getInformations3($data) as $result) {
      		$this->data['informations'][] = array(
        		'title' => $result['title'],
				'information_id' => $result['information_id'],
				'href'  => $this->url->link('common/faq', 'information_id=' . $result['information_id'])
	    		
      		);
    	}

		if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/module/mebuu_faq_home.tpl')) {
			$this->template = $this->config->get('config_template') . '/template/module/mebuu_faq_home.tpl';
		} else {
			$this->template = 'default/template/module/mebuu_faq_home.tpl';
		}

		$this->render();
	}
}
?>